package svnserver.service;

import java.util.UUID;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.jetbrains.annotations.NotNull;

public class BackupContext {
    @JsonProperty("rimeid")
    public String RIMEID;
    @JsonProperty("uuid")
    public String RIMEUUID;
    @JsonProperty("retries")
    public int Retries;
    @JsonProperty("envid")
    public String EnvID;
    @JsonProperty("time")
    public String Time;

    public BackupContext(@NotNull String rimeid, @NotNull String envid) {
        RIMEID = rimeid;
        RIMEUUID = UUID.randomUUID().toString();
        EnvID = envid;
        Retries = 0;
    }
};